package com.sola.jpa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sola.jpa.dao.AccountDao;
import com.sola.jpa.entity.User;
import com.sola.jpa.service.IUserService;

@Service
public class UserService implements IUserService{

	@Autowired
	AccountDao accountDao;
	@Override
	public List<User> getAccounts() {
		return accountDao.findAll();
	}

}
